/**
 * 首页专题和楼层
 * @author [yjc]
 */
const $http = require('../utils/http.js'), api = require('../config/api.js')

/**
 * 专题列表
 * @params[position]位置1微信banner 2APP banner 3PC banner
 */
var _gettopiclist = function (params) {
  return $http.get(api.INDEX_TOPIC_LIST, params)
}

/**
 * 专题详情
 * @params[topicPageId]专题id
 */
var _gettopicdetail = function (params) {
  return $http.get(api.INDEX_TOPIC_DETIAL, params)
}

/**
 * 楼层列表
 * @params[position]位置1微信banner 2APP banner 3PC banner
 */
var _getfloorlist = function (params) {
  return $http.get(api.INDEX_FLOOR_LIST, params)
}


module.exports = {
  gettopiclist: _gettopiclist,
  gettopicdetail: _gettopicdetail,
  getfloorlist: _getfloorlist
}